package com.young.ysepay.controllers;

import com.young.ysepay.service.YsAsyncWithdrawalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/5 8:37
 * @Des 银盛提现异步回执（一清）
 */
@RestController
@RequestMapping("/ysAsyncWithdrawal")
public class YsAsyncWithdrawalController {
    @Autowired
    private YsAsyncWithdrawalService ysAsyncWithdrawalService;
    /**
     * @Author zhaopengjun
     * @Description //银盛实时提现异步返回
     * @Date 16:55 2019/5/21
     * @Param [returns]
     * @return java.lang.String
     **/
    @PostMapping("/asyncWithdrawal")
    public void asyncPayment(@RequestParam Map<String,String> paramMap, HttpServletResponse response){
        ysAsyncWithdrawalService.asyncWithdrawal(paramMap,response);

    }
}
